/*******************************************************************************
 * File name: 		hdr_mam.h
 * Description: 	header file with bit definitions for MAM registers of LPC2478
 * Project: 		Pattern
 * Target: 			LPC2478
 * Compiler: 		arm-none-eabi-gcc
 * Date: 			2010-06-02
 * Author: 			Freddie Chopin
 * Based on: 		http://freddiechopin.info
 ******************************************************************************/

#ifndef HDR_MAM_H_
#define HDR_MAM_H_

/*==============================================================================
 Defines
==============================================================================*/
/* MAMCR - MAM Control register */
# define MAMCR_MODE_bit						0
# define MAMCR_MODE0_bit					0
# define MAMCR_MODE1_bit					1

# define MAMCR_MODE0							(1 << MAMCR_MODE0_bit)
# define MAMCR_MODE1							(1 << MAMCR_MODE1_bit)

# define MAMCR_MODE_DISABLED_value		0
# define MAMCR_MODE_PARTIAL_value		1
# define MAMCR_MODE_FULL_value			2
# define MAMCR_MODE_mask					3

# define MAMCR_MODE_DISABLED				(MAMCR_MODE_DISABLED_value << MAMCR_MODE_bit)
# define MAMCR_MODE_PARTIAL				(MAMCR_MODE_PARTIAL_value << MAMCR_MODE_bit)
# define MAMCR_MODE_FULL					(MAMCR_MODE_FULL_value << MAMCR_MODE_bit)

#endif /* HDR_MAM_H_ */

/******************************************************************************
* END OF FILE
******************************************************************************/
